package qldc.pm.tienan.searchcontainer;

import java.text.SimpleDateFormat;
import java.util.Date;

import javax.portlet.PortletRequest;
import javax.portlet.PortletURL;
import javax.portlet.RenderRequest;

import qldc.pm.tienan.constants.TienAnConstants;

import com.liferay.portal.kernel.dao.search.DisplayTerms;
import com.liferay.portal.kernel.util.ParamUtil;

public class TienAnCanXoaAnTichDisplayTerms extends DisplayTerms {

	public static final String TINH_ID = "noiThuongTruTinhId";
	public static final String QUAN_HUYEN_ID = "noiThuongTruQuanHuyenId";
	public static final String PHUONG_XA_ID = "noiThuongTruPhuongXaId";

	public static final String TRANG_THAI = "trangThai";
	
	public static final String TU_NGAY_TOA_AN = "tuNgayToaAn";
	public static final String DEN_NGAY_TOA_AN = "denNgayToaAn";
	

	public static final String TU_NGAY_XOA_AN_TICH = "tuNgayXoaAnTich";
	public static final String DEN_NGAY_XOA_AN_TICH = "denNgayXoaAnTich";
	

	public static final String TU_NGAY_THONG_KE = "tuNgayThongKe";
	public static final String DEN_NGAY_THONG_KE = "denNgayThongKe";
	
	protected long tinhId;
	protected long quanHuyenId;
	protected long phuongXaId;
	protected Date tuNgayToaAn;
	protected Date denNgayToaAn;
	protected Date tuNgayXoaAnTich;
	protected Date denNgayXoaAnTich;
	protected Date tuNgayThongKe;
	protected Date denNgayThongKe;
	protected int trangThai;
	
	public TienAnCanXoaAnTichDisplayTerms(PortletRequest portletRequest) {
		super(portletRequest);

		SimpleDateFormat dateFormat = new SimpleDateFormat(TienAnConstants.DATE_PATTERN);
		tuNgayToaAn = ParamUtil.getDate(portletRequest, TU_NGAY_TOA_AN, dateFormat,
				null);
		denNgayToaAn = ParamUtil.getDate(portletRequest, DEN_NGAY_TOA_AN,
				dateFormat, null);
		tuNgayThongKe = ParamUtil.getDate(portletRequest, TU_NGAY_THONG_KE, dateFormat,
				null);
		denNgayThongKe = ParamUtil.getDate(portletRequest, DEN_NGAY_THONG_KE,
				dateFormat, null);
		tuNgayXoaAnTich = ParamUtil.getDate(portletRequest, TU_NGAY_XOA_AN_TICH, dateFormat,
				null);
		denNgayXoaAnTich = ParamUtil.getDate(portletRequest, DEN_NGAY_XOA_AN_TICH,
				dateFormat, null);
		
		quanHuyenId = ParamUtil.getLong(portletRequest, QUAN_HUYEN_ID);
		phuongXaId = ParamUtil.getLong(portletRequest, PHUONG_XA_ID);
		tinhId = ParamUtil.getLong(portletRequest, TINH_ID);
		trangThai = ParamUtil.getInteger(portletRequest, TRANG_THAI);
	}

	public Date getTuNgayXoaAnTich() {
		return tuNgayXoaAnTich;
	}

	public Date getTuNgayThongKe() {
		return tuNgayThongKe;
	}

	public void setTuNgayThongKe(Date tuNgayThongKe) {
		this.tuNgayThongKe = tuNgayThongKe;
	}

	public Date getDenNgayThongKe() {
		return denNgayThongKe;
	}

	public void setDenNgayThongKe(Date denNgayThongKe) {
		this.denNgayThongKe = denNgayThongKe;
	}

	public void setTuNgayXoaAnTich(Date tuNgayXoaAnTich) {
		this.tuNgayXoaAnTich = tuNgayXoaAnTich;
	}

	public Date getDenNgayXoaAnTich() {
		return denNgayXoaAnTich;
	}

	public void setDenNgayXoaAnTich(Date denNgayXoaAnTich) {
		this.denNgayXoaAnTich = denNgayXoaAnTich;
	}

	public long getQuanHuyenId() {
		return quanHuyenId;
	}

	public void setQuanHuyenId(long quanHuyenId) {
		this.quanHuyenId = quanHuyenId;
	}

	public long getPhuongXaId() {
		return phuongXaId;
	}

	public void setPhuongXaId(long phuongXaId) {
		this.phuongXaId = phuongXaId;
	}


	public int getTrangThai() {
		return trangThai;
	}

	public void setTrangThai(int trangThai) {
		this.trangThai = trangThai;
	}

	public Date getTuNgayToaAn() {
		return tuNgayToaAn;
	}

	public void setTuNgayToaAn(Date tuNgayToaAn) {
		this.tuNgayToaAn = tuNgayToaAn;
	}

	public Date getDenNgayToaAn() {
		return denNgayToaAn;
	}

	public void setDenNgayToaAn(Date denNgayToaAn) {
		this.denNgayToaAn = denNgayToaAn;
	}

	public long getTinhId() {
		return tinhId;
	}

	public void setTinhId(long tinhId) {
		this.tinhId = tinhId;
	}

}
